<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        //js可以打印单个数据    
        var foo = 'bar';
        console.log(foo);
        //js可以打印多个数据
        var thisVar = "first value";
        var thatVar = "second value";
        console.log("thisvar is:", thisVar, ",secondvar is:", thatVar);
        //js将对象作为字符串打印

        console.log("%s", obj);
        console.log("%s", {
            name: "sky"
        });
    </script>
</body>

</html>